package com.lingx.model;

import java.util.Map;
import java.util.concurrent.TimeUnit;

import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;

public interface Constants {
	public static final String GRID_QUERY="grid_query";
	
	public static final String REQUEST_JSON="REQUEST_JSON";
	public static final String REQUEST_PARAMS="REQUEST_PARAMS";
	public static final String REQUEST_MESSAGES="REQUEST_MESSAGES";
	public static final String REQUEST_ATTR="REQUEST_ATTR";
	
	public static final String APPLICATION_ONLINE_USER="APPLICATION_ONLINE_USER";
	public static final String SESSION_USER="SESSION_USER";
	public static final String IS_SUPER_MAN="IS_SUPER_MAN";
	public static final String SESSION_YZM="SESSION_YZM";
	public static final String SESSION_LANGUAGE="SESSION_LANGUAGE";

	public static final String KEY_DATABASE_TYPE="database.type";
	public static final String KEY_DATABASE_NAME="database.name";
	public static final String KEY_LINGX_LOGIN_VERIFYCODE="lingx.login.verifycode";
	
	public static final String REF_DISPLAY="ref-display";
	public static final String REF_VALUE="ref-value";
	public static final String REF_PARAM="ref-param";
	public static final String REF_DEFAULT="id";
	/**
	 * 会话主要用于存sql
	 */
	public static Cache<String, Map<String,String>> session = CacheBuilder.newBuilder().maximumSize(10000)
			.expireAfterAccess(60, TimeUnit.MINUTES).build();
}
